﻿using Newtonsoft.Json.Linq;
using Newtonsoft.Json;

namespace android_charge
{
    public partial class Amazon_US_NEW : Amazon
    {
        public Amazon_US_NEW(string devices_id)
        {

            this.devices_id = devices_id;
            InitializeComponent();
            region = "US";
            this.HandleCreated += new EventHandler(OnHandleCreated);
            Task.Run(() =>
            {
                init();
            });

        }

        public override void init()
        {
            // 查看是否存在curl            
            send_curl();
            // 静止熄屏
            // 禁止弹出键盘
            batch_adb("settings put system screen_off_timeout 2147483647", "ime disable com.android.inputmethod.latin/.LatinIME");
            if (string.IsNullOrEmpty(server))
            {
                server = Main.vpn;
            }
            labelMap = new string[]
            {
                "gAccount",
                "gPassword",
                "fuEmail",
                "number",
                "exDate",
                "pwd",
                "zip",
                "amzonAcc",
                "amPwd",
                "gPassword"
            };
        }



        private void label3_Click(object sender, EventArgs e)
        {
            if (sender is Label)
            {
                Label label = (Label)sender;
                Clipboard.SetText(label.Text);
            }
        }

        private void button11_Click(object sender, EventArgs e)
        {
            Task.Run(() =>
            {
                active(() =>
                {
                    content1.amzonAccount(null, null);
                });
            });
        }


    }
}
